﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_billindetailMetadata))]//使用ts_billindetailMetadata对ts_billindetail进行数据验证
    public partial class ts_billindetail : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        [ScaffoldColumn(true)]
        [Display(Name = "商品名称", Order = 1)]
        public string c_desc { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "商品规格", Order = 2)]
        public string c_model { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "商品单位", Order = 3)]
        public string c_unit { get; set; }
         
        #endregion

    }
    public class ts_billindetailMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "类型", Order = 2)]
			[StringLength(4, ErrorMessage = "长度不可超过4")]
			public object c_type { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "入库表ID", Order = 3)]
            [StringLength(36, ErrorMessage = "长度不可超过36")]
            public object i_no { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "排序", Order = 4)]
			[Range(0,2147483646, ErrorMessage="数值超出范围")]
			public int? i_num { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "编号", Order = 5)]
			[StringLength(15, ErrorMessage = "长度不可超过15")]
			public object c_code { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "数量", Order = 6)]
			public object f_quant { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "单价", Order = 7)]
			public object f_price { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "金额", Order = 8)]
			public object f_amount { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "备注", Order = 9)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object c_comment { get; set; }


    }


}

